import { kebabCase } from 'case-anything'

export function prefix(className: string, scope?: string) {
  let prefix = '_'
  if (['pc', 'mobile'].includes(className)) {
    prefix = import.meta.env.VITE_APP_CLASS_PREFIX
  }
  else {
    prefix = kebabCase(scope as string)
  }
  return `${prefix}-${className}`
}
